/*
 * @Author: Felix 741883227@qq.com
 * @Date: 2022-07-24 12:29:35
 * @LastEditors: Felix 741883227@qq.com
 * @LastEditTime: 2022-07-26 16:04:04
 * @FilePath: /zmo-cli/core/cli/models/zmo-cli.config.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/*
 * @Author: Felix 741883227@qq.com
 * @Description: zmo-cli部署样例配置文件
 * 数据结构说明
 * command 打包命令
 * host 服务器ip地址
 * username 服务器用户名
 * directory 服务器部署目录
 * credentialsLoc 服务器部署秘钥
 */

module.exports = {
  outputDir: "./dist",
  deploy: {
    dev: {
      command: ["run", "build"],
      label: "开发环境",
      feishuNoticeApi: "飞书通知地址",
      address: "发布后的测试域名",
      services: [
        {
          host: "192.168.0.1",
          username: "root",
          directory: "/opt/zmo-ai/html",
          credentialsLoc: ".git/dev-deploy-credential",
        },
      ],
    },
    prodEN: {
      command: ["run", "build:prod", "--ch"],
      label: "生产环境-国内",
      feishuNoticeApi: "飞书通知地址",
      isProduction: true,
      address: "发布后的测试域名",
      services: [
        {
          host: "192.168.0.2",
          username: "root",
          directory: "/opt/zmo-ai/html",
          credentialsLoc: ".git/prod-deploy-credential",
          cdnRefreshApi: "cdn刷新调用的api",
        },
      ],
    },
    prodCN: {
      command: ["run", "build:prod", "--en"],
      label: "生产环境-海外",
      feishuNoticeApi: "飞书通知地址",
      isProduction: true,
      services: [
        {
          host: "192.168.0.3",
          username: "root",
          directory: "/opt/zmo-ai/html",
          credentialsLoc: ".git/prod-deploy-credential",
        },
      ],
    },
  },
};
